/*
 * Copyright (c) 2015 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.close-button {
  width: 14px;
  height: 14px;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-icon,
.active-icon {
  display: none;
}

.close-button:hover .default-icon,
.close-button:active .default-icon {
  display: none;
}

.close-button:hover .hover-icon {
  display: block;
}

.close-button:active .default-icon,
.close-button:focus-visible .default-icon {
  display: none;
}

.close-button:active .hover-icon {
  display: none !important; /* stylelint-disable-line declaration-no-important */
}

.close-button:focus-visible .hover-icon {
  display: block;
}

.close-button:active .active-icon {
  display: block;
}

@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .close-button {
    filter: brightness(100);
  }
}
